package com.xl.apitest;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: lei·xie
 * @Created: 2024/3/14 0014 17:32
 */
public class StringDemo {

    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        String s3 = new String("abc");
        String s4 = new String("abc");
        System.out.println("s1==s2:"+(s1==s2));
        System.out.println("s3==s4:"+(s3==s4));
    }
}
